#encoding:utf-8

from pojo.entity.BaseEntity import BaseEntity

class RealTransactionMap(BaseEntity):
    id=None

    userId=None
    strategyId=None

    account=None
    passwd=None

    proxy=None #证券接口 "00":平安证券
    autoSign=None
    entryTime=None#更新时间  yyyy-MM-dd HH:mm:ss:SSS

    def changeFormat(self):
        return self

    def getFieldMap(self):
        fieldMap={}
        return fieldMap

    def getTableName(self):
        tableName="real_transaction_map"
        return tableName

    def getTableFieldMap(self):
        fieldMap = {
            "id": "id",
            "userId": "user_id",
            "strategyId": "strategy_id",
            "account": "account",
            "passwd": "passwd",
            "proxy": "proxy",
            "autoSign": "auto_sign",
            "entryTime": "entry_time",
        }
        return fieldMap


    def __str__(self):
        descDict = self.__dict__
        return """RealTransactionMap-----{desc}""".format(
            desc=",".join(
                ["{key}:{val}".format(key=key, val=val.encode("utf-8") if isinstance(val, unicode) else val) for
                 key, val in descDict.items()])
        )